package com.xuecheng.content.service;

import com.xuecheng.domain.dto.CoursePreviewDto;

import java.io.File;

/**
 * @author: 35238
 * 功能: 视频预览
 * 时间: 2024-05-22 22:01
 */
public interface CoursePublishService {

    /**
     * @description 获取课程预览信息
     * @param courseId 课程id
     */
    CoursePreviewDto getCoursePreviewInfo(Long courseId);

    /**
     * 提交审核
     * @param companyId
     * @param courseId
     */
    public void commitAudit(Long companyId, Long courseId);

    public  void publish(Long companyId, Long courseId);

    /**
     * @description 课程静态化
     * @param courseId  课程id
     */
    File generateCourseHtml(Long courseId);
    /**
     * @description 上传课程静态化页面
     * @param file  静态化文件
     */
    void uploadCourseHtml(Long courseId, File file);
}
